import request from '@/utils/request'

// 查询会员提现列表
export function listWithdraw(query) {
  return request({
    url: '/uac/member/withdraw/list',
    method: 'get',
    params: query
  })
}

// 查询会员提现详细
export function getWithdraw(id) {
  return request({
    url: '/uac/member/withdraw/' + id,
    method: 'get'
  })
}

// 审核会员提现
export function auditWithdraw(data) {
  return request({
    url: '/uac/member/withdraw/audit',
    method: 'post',
    data: data
  })
}

// 会员提现（线下打款）
export function withdrawManualPay(data) {
  return request({
    url: '/uac/member/withdraw/pay/manual',
    method: 'post',
    data: data
  })
}

// 修改会员提现
export function updateWithdraw(data) {
  return request({
    url: '/uac/member/withdraw',
    method: 'put',
    data: data
  })
}

// 删除会员提现
export function delWithdraw(id) {
  return request({
    url: '/uac/member/withdraw/' + id,
    method: 'delete'
  })
}
